package com.lanou.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class User{
    private Integer uId;

    private String uName;

    private String uPassword;

    private String uSex;

    private Integer uTell;

    public User(Integer uId, String uName, String uPassword, Integer uTell, String uMailbox) {
        this.uId = uId;
        this.uName = uName;
        this.uPassword = uPassword;
        this.uTell = uTell;
        this.uMailbox = uMailbox;
    }

    public User(String uName, String uPassword, Integer uTell, String uMailbox, Integer uRole, Date uTime, Integer uState, String uRemark) {
        this.uName = uName;
        this.uPassword = uPassword;
        this.uTell = uTell;
        this.uMailbox = uMailbox;
        this.uRole = uRole;
        this.uTime = uTime;
        this.uState = uState;
        this.uRemark = uRemark;
    }

    public User() {
    }

    private String uMailbox;

    private Integer uRole;

    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
            )
    private Date uTime;

    private Integer uState;

    private String uRemark;


    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName == null ? null : uName.trim();
    }

    public String getuPassword() {
        return uPassword;
    }

    public void setuPassword(String uPassword) {
        this.uPassword = uPassword == null ? null : uPassword.trim();
    }

    public String getuSex() {
        return uSex;
    }

    public void setuSex(String uSex) {
        this.uSex = uSex == null ? null : uSex.trim();
    }

    public Integer getuTell() {
        return uTell;
    }

    public void setuTell(Integer uTell) {
        this.uTell = uTell;
    }

    public String getuMailbox() {
        return uMailbox;
    }

    public void setuMailbox(String uMailbox) {
        this.uMailbox = uMailbox == null ? null : uMailbox.trim();
    }

    public Integer getuRole() {
        return uRole;
    }

    public void setuRole(Integer uRole) {
        this.uRole = uRole;
    }

    public Date getuTime() {
        return uTime;
    }

    public void setuTime(Date uTime) {
        this.uTime = uTime;
    }

    public Integer getuState() {
        return uState;
    }

    public void setuState(Integer uState) {
        this.uState = uState;
    }

    public String getuRemark() {
        return uRemark;
    }

    public void setuRemark(String uRemark) {
        this.uRemark = uRemark == null ? null : uRemark.trim();
    }

    @Override
    public String toString() {
        return "User{" +
                "uId=" + uId +
                ", uName='" + uName + '\'' +
                ", uPassword='" + uPassword + '\'' +
                ", uSex='" + uSex + '\'' +
                ", uTell=" + uTell +
                ", uMailbox='" + uMailbox + '\'' +
                ", uRole=" + uRole +
                ", uTime=" + uTime +
                ", uState=" + uState +
                ", uRemark='" + uRemark + '\'' +
                '}';
    }
}